package com.zhuang.observer;

/**
 * @Classname Subject
 * @Description 抽象主题类
 * @Date 2021/3/28 14:15
 * @Created by dell
 */

public interface Subject {
    //增加订阅者
    public void attach(Observer observer);

    //删除订阅者
    public void remove(Observer observer);

    //通知订阅者更新消息
    public void notify(String messages);
}
